import pygame

# 定义窗口操作类


class Glass(pygame.sprite.Sprite):
    def __init__(self, bg_size):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.image.load("./images/glass.png").convert_alpha()
        self.mouse_image = pygame.image.load(
            "./images/hand.png").convert_alpha()
        self.rect = self.image.get_rect()
        self.rect.centerx = bg_size[0]/2
        self.rect.bottom = bg_size[1]
        self.mouse_rect = self.mouse_image.get_rect()
        pygame.mouse.set_visible(False)
